package bankapp;
import bankapp.util.BankSystemConstants;
import frmsystem.*;

public class PersonWithdraw implements ITransactionEvent{

	@Override
	public boolean toNotify(IAccount account) {
		
		double trans_amount = account.getLastTransactionAmount();
		if (trans_amount > BankSystemConstants.PERSONAL_TRANSACTION_LIMIT
			 || account.getBalance() < 0)
			return true;
		else
			return false;
	}

}
